<?php
namespace Badmins\Model;
use Think\Model;
class CommendModel extends Model{
	protected $_validate = array(
			array('name','require','推荐名称必须'),
			array('photo','require','图片必须'),
			array('name','','推荐名称已存在',0,'unique',1),
	);
}